package com.topwalk.datacollect.constant;

import java.util.HashMap;
import java.util.Map;

public class APIConstant {

	/**
	 * 接口 全量表 映射
	 */
	public static final Map<String, String[]> API_TAB_SYNC;
	static {
		API_TAB_SYNC = new HashMap<String, String[]>();
		API_TAB_SYNC.put("PlatInf", new String[]{"bsa_t_reg_platinf_list","collectTime"});// 平台注册信息
		API_TAB_SYNC.put("InnerLinkInf", new String[]{"bsa_t_reg_innerlinkinf_list","innerLinkID"});// 平台内部链路注册信息
		API_TAB_SYNC.put("OuterLinkInf", new String[]{"bsa_t_reg_outerlinkinf_list","innerLinkID","outLinkID"});// 平台外部链路注册信息
		API_TAB_SYNC.put("BizInf", new String[]{"bsa_t_reg_bizinf_list","innerLinkID","bizID"});// 平台业务注册信息
		API_TAB_SYNC.put("BizProInf", new String[]{"bsa_t_reg_bizproinf_list","innerLinkID","bizID","proID"});// 业务协议注册信息
		API_TAB_SYNC.put("DeviceInf", new String[]{"bsa_t_reg_deviceinf_list","innerLinkID","deviceID"});// 平台链路关键设备注册信息
	};

	/**
	 * 接口 增量表 映射
	 */
	public static final Map<String, String[]> API_TAB_INC;
	static {
		API_TAB_INC = new HashMap<String, String[]>();
		API_TAB_INC.put("PlatRunState", new String[]{"source_platrunstate_log","collectTime"});// 平台整体运行状态
		API_TAB_INC.put("InnerLinkRunState", new String[]{"source_innerlinkrunstate_log","collectTime"});// 内部链路运行状态
		API_TAB_INC.put("BizRunState", new String[]{"source_bizrunstate_log","collectTime"});// 业务运行状态
		API_TAB_INC.put("DeviceRunState", new String[]{"source_devicerunstate_log","collectTime"});// 关键设备运行状态
		API_TAB_INC.put("PlatRegInf", new String[]{"source_platreginf_log","collectTime"});// 平台注册统计信息
		API_TAB_INC.put("TPlatInnerLinkStatInfo", new String[]{"source_tplatinnerlinkstatinfo_log","collectTime"});// 内部链路统计信息
		API_TAB_INC.put("TPlatBizStatInfo", new String[]{"source_tplatbizstatinfo_log","collectTime"});// 业务统计信息
		API_TAB_INC.put("FileExchangeLog", new String[]{"source_fileexchangelog_log","transTime"});// 文件交换日志
		API_TAB_INC.put("DBExchangeLog", new String[]{"source_dbexchangelog_log","transTime"});// 数据库交换日志
		API_TAB_INC.put("video", new String[]{"source_video_log","endTime"});// 视频传输日志
		API_TAB_INC.put("tbsg", new String[]{"source_tbsg_log","time"});// 授权访问日志
		API_TAB_INC.put("PlatAlertInf", new String[]{"source_platalertinf_log","collectTime"});// 平台告警处置
	};

}
